import os

BASE_DIR = os.path.abspath(os.path.dirname(__file__))
UPLOAD_FOLDER = os.path.join(BASE_DIR, 'uploads')
ALLOWED_EXTENSIONS = set(['mp4', 'avi', 'flv', 'mkv'])
NGINX_RTMP = 'localhost'


class Config:
    # import os
    # os.urandom(24)
    SECRET_KEY = '\x8b\xd3\x15\x1d\xfeL\xc7\xb26\xcf*\x07\xa4\x99V\x8d\xe2\x18\x89\xd4q\xa0\xfc\xdf'
    # SSL_DISABLE = False


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_RECORD_QUERIES = True
    # SQLALCHEMY_POOL_SIZE = 20
    SQLALCHEMY_DATABASE_URI = 'sqlite:///database.sqlite'
    # SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data.sqlite')


class ProductionConfig(Config):
    DEBUG = False
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_RECORD_QUERIES = True
    # SQLALCHEMY_POOL_SIZE = 20
    SQLALCHEMY_DATABASE_URI = 'sqlite:///database.sqlite'
    # SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data.sqlite')
